package xyz.xxpc.springcloud.consumer;

import com.netflix.loadbalancer.RandomRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import xyz.xxpc.springcloud.consumer.rule.MyRule;

@SpringBootApplication
@EnableEurekaClient
@RibbonClient(name = "PROVIDER-30080", configuration = MyRule.class)
// 注意：此时扫描的包的路径是common模块下的包 所以必须要写
@EnableFeignClients(basePackages = "xyz.xxpc.springcloud.service.api")

public class ConsumerUserApplication {
    public static void main(String[] args) {
        SpringApplication.run(ConsumerUserApplication.class, args);
    }
}
